package com.demo.gulimall.product.feign;

import com.demo.gulimall.common.to.SkuHasStockVo;
import com.demo.gulimall.common.to.es.ProductEsTo;
import com.demo.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author Chen Yuan
 * @create 2023-05-29  13:53
 */
@Component
@FeignClient("mall-search")
public interface SearchFeignService {
	@PostMapping("/search/save/product")
	public R productStatusUp(@RequestBody List<ProductEsTo> productEsTos);

}
